import request from '@/utils/request'

// 查询流转作业卡列表
export function listBasic(query) {
  return request({
    url: '/work/basic/list',
    method: 'get',
    params: query
  })
}

// 查询流转作业卡详细
export function getBasic(id) {
  return request({
    url: '/work/basic/' + id,
    method: 'get'
  })
}

// 新增流转作业卡
export function addBasic(data) {
  return request({
    url: '/work/basic',
    method: 'post',
    data: data
  })
}

// 修改流转作业卡
export function updateBasic(data) {
  return request({
    url: '/work/basic',
    method: 'put',
    data: data
  })
}

// 删除流转作业卡
export function delBasic(id) {
  return request({
    url: '/work/basic/' + id,
    method: 'delete'
  })
}

// 导出流转作业卡
export function exportBasic(query) {
  return request({
    url: '/work/basic/export',
    method: 'get',
    params: query
  })
}